package me.spring.cloud.common.components.oauth2.userdetails.exception;


import me.spring.cloud.common.components.rpc.response.CommonResponse;
import me.spring.cloud.common.components.util.enums.CodedEnum;
import me.spring.cloud.common.components.exception.exceptions.BusinessException;

/**
 * @description: 自定义认证异常
 * @author: luffy
 * @create: 2018-10-17 18:24
 **/
public class AuthUserException extends BusinessException {

  private static final long serialVersionUID = 4658623116465349320L;

  public AuthUserException(CodedEnum code) {
    super(code);
  }

  public AuthUserException(CodedEnum code, String message) {
    super(code, message);
  }

  public AuthUserException(CodedEnum code, Throwable t) {
    super(code, t);
  }

  @Override
  public CommonResponse<?> handle() {
    return super.handle();
  }
}
